package hr.dario.fragments;

import java.util.HashMap;

public class Contact extends HashMap<String, String>{

	private String id;
	private String name;

	public static String KEY_ID = "id";
	public static String KEY_NAME = "name";
	
	public Contact() {}
	
	public Contact(String id, String name) {
		this.id = id;
		this.name = name;		
	}

	@Override
	public String get(Object k) {
	  String key = (String) k;
	  if (KEY_ID.equals(key))
	    return id;
	  else if (KEY_NAME.equals(key))
	    return name;
	  return null;
	}
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

}

